package com.jintoufs.dao.tour;

import java.util.List;
import java.util.Map;

import com.jintoufs.dao.QueryFilters;
import com.jintoufs.domain.tour.TourRouteOrder;
import com.jintoufs.domain.tour.TourRouteOrderExample;
import org.apache.ibatis.annotations.Param;

public interface TourRouteOrderMapper {
    int countByExample(TourRouteOrderExample example);

    int deleteByExample(TourRouteOrderExample example);

    int deleteByPrimaryKey(String id);

    int insert(TourRouteOrder record);

    int insertSelective(TourRouteOrder record);

    List<TourRouteOrder> selectByExample(TourRouteOrderExample example);

    TourRouteOrder selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") TourRouteOrder record, @Param("example") TourRouteOrderExample example);

    int updateByExample(@Param("record") TourRouteOrder record, @Param("example") TourRouteOrderExample example);

    int updateByPrimaryKeySelective(TourRouteOrder record);

    int updateByPrimaryKey(TourRouteOrder record);

    List<Map<String, Object>> queryByParams(Map<String, Object> params);

    List<String> orderIndex(Map<String,Object> param);

    List<String> orderPriceIndex(Map<String,Object> param);

    List<String> orderDateIndex(Map<String,Object> param);

    List<Map<String,Object>> getOrderInfo(Map<String,Object> param);

    Map getOrderPriceAndCostByOrderId(String orderId);

    List<Map<String,Object>> queryOrderByFilters(QueryFilters filters);

    List<TourRouteOrder> getNoConfirm(Map<String,Object> param);
    int upDateOrderByStatusAndUser(Map param);
    
    int updateOrderNew(Map param);
}